Optimal. Leaf size=70 \[ -\frac{(a-b) \cos ^5(e+f x)}{5 f}+\frac{(2 a-3 b) \cos ^3(e+f x)}{3 f}-\frac{(a-3 b) \cos (e+f x)}{f}+\frac{b \sec (e+f x)}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0620982, antiderivative size = 70, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {3664, 448} \[ -\frac{(a-b) \cos ^5(e+f x)}{5 f}+\frac{(2 a-3 b) \cos ^3(e+f x)}{3 f}-\frac{(a-3 b) \cos (e+f x)}{f}+\frac{b \sec (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3664
Rule 448
Rubi steps
\begin{align*} \int \sin ^5(e+f x) \left (a+b \tan ^2(e+f x)\right ) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (-1+x^2\right )^2 \left (a-b+b x^2\right )}{x^6} \, dx,x,\sec (e+f x)\right )}{f}\\ &=\frac{\operatorname{Subst}\left (\int \left (b+\frac{a-b}{x^6}+\frac{-2 a+3 b}{x^4}+\frac{a-3 b}{x^2}\right ) \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac{(a-3 b) \cos (e+f x)}{f}+\frac{(2 a-3 b) \cos ^3(e+f x)}{3 f}-\frac{(a-b) \cos ^5(e+f x)}{5 f}+\frac{b \sec (e+f x)}{f}\\ \end{align*}
Mathematica [A] time = 0.0625546, size = 104, normalized size = 1.49 \[ -\frac{5 a \cos (e+f x)}{8 f}+\frac{5 a \cos (3 (e+f x))}{48 f}-\frac{a \cos (5 (e+f x))}{80 f}+\frac{19 b \cos (e+f x)}{8 f}-\frac{3 b \cos (3 (e+f x))}{16 f}+\frac{b \cos (5 (e+f x))}{80 f}+\frac{b \sec (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.105, size = 92, normalized size = 1.3 \begin{align*}{\frac{1}{f} \left ( -{\frac{\cos \left ( fx+e \right ) a}{5} \left ({\frac{8}{3}}+ \left ( \sin \left ( fx+e \right ) \right ) ^{4}+{\frac{4\, \left ( \sin \left ( fx+e \right ) \right ) ^{2}}{3}} \right ) }+b \left ({\frac{ \left ( \sin \left ( fx+e \right ) \right ) ^{8}}{\cos \left ( fx+e \right ) }}+ \left ({\frac{16}{5}}+ \left ( \sin \left ( fx+e \right ) \right ) ^{6}+{\frac{6\, \left ( \sin \left ( fx+e \right ) \right ) ^{4}}{5}}+{\frac{8\, \left ( \sin \left ( fx+e \right ) \right ) ^{2}}{5}} \right ) \cos \left ( fx+e \right ) \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.05209, size = 84, normalized size = 1.2 \begin{align*} -\frac{3 \,{\left (a - b\right )} \cos \left (f x + e\right )^{5} - 5 \,{\left (2 \, a - 3 \, b\right )} \cos \left (f x + e\right )^{3} + 15 \,{\left (a - 3 \, b\right )} \cos \left (f x + e\right ) - \frac{15 \, b}{\cos \left (f x + e\right )}}{15 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.99045, size = 161, normalized size = 2.3 \begin{align*} -\frac{3 \,{\left (a - b\right )} \cos \left (f x + e\right )^{6} - 5 \,{\left (2 \, a - 3 \, b\right )} \cos \left (f x + e\right )^{4} + 15 \,{\left (a - 3 \, b\right )} \cos \left (f x + e\right )^{2} - 15 \, b}{15 \, f \cos \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]